import request from '@/utils/request'

export default {

  getList: function(data) {
    return request({
      url: '/inBoundList/listByPage',
      method: 'post',
      data
    })
  },
  getGoodsDetail: function(id,type) {
    return request({
      url: '/inBoundList/getGoodsDetail/'+id+"/"+type,
      method: 'get'
    })
  },
  calculateCapacity: function(id,type) {
    return request({
      url: '/inBoundList/calculateCapacity/'+id+"/"+type,
      method: 'get'
    })
  },
  saveInBoundList: function(data) {
    return request({
      url: '/inBoundList/save',
      method: 'post',
      data
    })
  },
  backInBoundList: function(id) {
    return request({
      url: '/inBoundList/backInBoundList/'+id,
      method: 'get',
    })
  },
  
}
